#!/bin/sh

cd ~/IdeaProjects/RestAPI

docker rm -f car
docker rm -f microservice

docker rmi com.yf/car:1.0-SNAPSHOT
docker rmi com.yf/microservice:1.0-SNAPSHOT

gradle buildDocker

docker run -d --network test_default --ip 172.18.0.10 -p 8880:8880 --hostname car --name car com.yf/car:1.0-SNAPSHOT
docker run -d --network test_default --ip 172.18.0.11 -p 8881:8881 --hostname microservice --name microservice com.yf/microservice:1.0-SNAPSHOT


